/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.project;

import java.util.List;

import com.idenger.modules.edu.entity.project.EduProject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.dao.project.EduProjectDao;

/**
 * 项目Service
 * @author chenlin
 * @version 2017-12-04
 */
@Service
@Transactional(readOnly = true)
public class EduProjectService extends CrudService<EduProjectDao, EduProject> {

	public EduProject get(String id) {
		return super.get(id);
	}
	
	public List<EduProject> findList(EduProject eduProject) {
		return super.findList(eduProject);
	}
	
	public Page<EduProject> findPage(Page<EduProject> page, EduProject eduProject) {
		return super.findPage(page, eduProject);
	}
	
	public Page<EduProject> GruopByForEnrollForUserId(Page<EduProject> page,EduProject eduProject){
		eduProject.setPage(page);
		page.setList(dao.GruopByForEnrollForUserId(eduProject));
		return page;
	}
	
	public List<EduProject> GruopByForEnrollForUserIdNoPage(EduProject eduProject){
		return dao.GruopByForEnrollForUserId(eduProject);
	}
	
	public List<EduProject> projectListByOrderId(String orderId ){
		return dao.projectListByOrderId(orderId);
	}
	
	
	@Transactional(readOnly = false)
	public void save(EduProject eduProject) {
		super.save(eduProject);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduProject eduProject) {
		super.delete(eduProject);
	}
	
}